home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
New Perspectives on Computer Concepts
/
New Perspectives on Computer Concepts.iso
/
np2010c
/
l05a.swf
/
scripts
/
frame_456
/
DoAction.as
Wrap
Text File
|
2008-11-25
|
2KB
|
75 lines
function EndLab()
{
_global.percent1;
_global.percent2;
_global.filename;
_global.questionsanswered;
filename = "Local Area Networks";
var _loc2_ = new Date();
var _loc9_ = undefined;
var _loc4_ = undefined;
var _loc10_ = undefined;
_global.mydate;
var _loc3_ = undefined;
var _loc5_ = undefined;
var _loc6_ = undefined;
var _loc8_ = undefined;
var _loc7_ = undefined;
_global.mytime;
_loc9_ = _loc2_.getDate();
_loc4_ = _loc2_.getMonth();
_loc4_ += 1;
_loc10_ = _loc2_.getFullYear();
mydate = _loc4_ + "/" + _loc9_ + "/" + _loc10_;
_loc3_ = _loc2_.getHours();
_loc5_ = _loc2_.getMinutes();
if(_loc3_ >= 13)
{
_loc6_ = _loc3_ - 12;
_loc7_ = "PM";
}
else if(_loc3_ == 0)
{
_loc6_ = 12;
_loc7_ = "AM";
}
else
{
_loc6_ = _loc3_;
_loc7_ = "AM";
}
if(_loc5_ < 10)
{
_loc8_ = "0" + _loc5_;
}
else
{
_loc8_ = _loc5_;
}
mytime = _loc6_ + ":" + _loc8_ + " " + _loc7_;
if(QuizTrack.total_correct == 0 || QClen == 0)
{
percent1 = 0;
}
else
{
percent1 = QuizTrack.total_correct / QClen * 100;
}
percent1 = Math.round(percent1);
questionsanswered = QClen - QuizTrack.quest_to_ask;
if(questionsanswered == 0 || QuizTrack.total_correct == 0)
{
percent2 = 0;
}
else
{
percent2 = QuizTrack.total_correct / questionsanswered * 100;
}
percent2 = Math.round(percent2);
_global.output;
output = "MTC|" + filename + "|" + mydate + "|" + mytime + "|" + QClen + "|" + QuizTrack.total_correct + "|" + percent1 + "%|" + questionsanswered + "|" + percent2 + "%";
System.setClipboard(output);
}
stop();
EndLab();